package net.betou.cms.manager.main;

import javax.servlet.http.HttpServletRequest;

import net.betou.cms.entity.main.CmsLog;
import net.betou.cms.entity.main.CmsUser;
import net.betou.common.page.Pagination;

public interface CmsLogMng{
	public Pagination getPage( Integer category, Integer siteId, String username, String title, String ip, int pageNo, int pageSize );

	public CmsLog findById( Integer id );

	public CmsLog operating( HttpServletRequest request, String title, String content );

	public CmsLog loginFailure( HttpServletRequest request, String title, String content );

	public CmsLog loginSuccess( HttpServletRequest request, CmsUser user, String title );

	public CmsLog save( CmsLog bean );

	public CmsLog deleteById( Integer id );

	public CmsLog [ ] deleteByIds( Integer [ ] ids );

	public int deleteBatch( Integer category, Integer siteId, Integer days );
}